﻿package cn.flashk.image
{
    import flash.display.*;
    import flash.geom.*;

    public class BitmapTool extends Object
    {

        public function BitmapTool()
        {
            return;
        }// end function

        public static function getNoAlphaArea(param1:BitmapData, param2:Boolean = true) : Rectangle
        {
            return param1.getColorBoundsRect(4278190080, 0, !param2);
        }// end function

        public static function getColorArea(param1:BitmapData, param2:uint) : Rectangle
        {
            return param1.getColorBoundsRect(4294967295, param2, true);
        }// end function

        public static function getEmptyArea(param1:BitmapData, param2:Boolean = true) : Rectangle
        {
            return param1.getColorBoundsRect(4294967295, 4294967295);
        }// end function

    }
}
